<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Medical Reminder Application</title>
        <link href="${pageContext.request.contextPath}/css/style.css" type="text/css" rel="stylesheet" />
        <style type="text/css">
            li {
                margin-right: 10px;
            }
        </style>
    </head>
    <body>
        <div id="wrap">

            <div id="header">
                <img src="${pageContext.request.contextPath}/css/images/logo.jpg" alt="MediRem - closing the bridge between GP and Patient" width="950" />
                <h1><a href="${pageContext.request.contextPath}/admin">Administrator Panel</a></h1>
                <h2>For a better connection between GP and Patients</h2>
            </div>

            <div id="container">
                <h1>Welcome administrator, you can add GPs below.</h1>
                <h2>Add a general practioner</h2>
                <c:if test="${!empty flash}">
                    <div class="flash">
                        ${flash}
                    </div>
                </c:if>

                <form action="${pageContext.request.contextPath}/admin/saveadd.jsp" method="post">
                    <table>
                        <tr id="username">
                            <td>Username</td>
                            <td>
                                <input type="text" name="username" />
                            </td>
                        </tr>
                        <tr id="password">
                            <td>Password</td>
                            <td>
                                <input type="password" name="password" />
                            </td>
                        </tr>
                        <tr>
                            <td>Firstname</td>
                            <td>
                                <input type="text" name="firstname" id="firstname" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="lastname">Surname</label>
                            </td>
                            <td>
                                <input id="lastname" name="surname" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input type="submit" name="submit" value="Add" />
                                <input type="reset" name="submit" value="Reset" id="reset"/>
                            </td>
                        </tr>
                    </table>
                </form>
                <p><a href="${pageContext.request.contextPath}/admin/logout">Log out</a></p>
            </div>
        </div>
    </body>
</html>